package com.ht.medicaltreatment.activity.haocai2

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.ConsumableRecordData

class PrepareConsumableAdapter : BaseQuickAdapter<ConsumableRecordData,BaseViewHolder>(R.layout.item_prepare_layout){
    init {
        addChildClickViewIds(R.id.tvDetail)
    }
    override fun convert(holder: BaseViewHolder, item: ConsumableRecordData) {
        holder.setText(R.id.tvTime,"订单提交时间：${item.createTime}")
        holder.setText(R.id.tvUserName,"申请人：${item.username}")
        //holder.setText(R.id.tvType,"耗材类别：${item.createTime}")
        holder.setText(R.id.tvProgress,"准备进度：${item.consumablePreparationProgress}")
    }
}
